Skip to content

chore(deps): bump unthrown to 5.0.0 - #351

Merged
btravers merged 2 commits into
mainfrom
chore/bump-unthrown-v5
Jul 29, 2026
Merged

chore(deps): bump unthrown to 5.0.0#351
btravers merged 2 commits into
mainfrom
chore/bump-unthrown-v5

Conversation

@btravers

Copy link
Copy Markdown
Collaborator

Summary

unthrown 5.0.0 is out of beta. Catalog and peer ranges move from 5.0.0-beta.7 to the stable release.

The only API change between beta.7 and 5.0.0 is that the standalone tag export moved onto the pattern namespace as P.tag(t) (unthrown beta.9), joining every other pattern constructor. The type and runtime behaviour are unchanged, so the migration is purely a rename.

Changes

  • Catalog: unthrown and @unthrown/vitest5.0.0
  • Peer range on contract / worker / client → ^5.0.0
  • tag(...)P.tag(...) across source, tests, TSDoc examples, READMEs and the docs site; tag dropped from every unthrown import in favour of P
  • docs/how-to/install.md: peer table shows ^5.0.0
  • docs/how-to/upgrade-to-v8.md: unthrown@betaunthrown@^5 (unthrown itself is stable now — only the @temporal-contract/* packages are on the beta tag), plus a tagP.tag note and checklist item for anyone already tracking an 8.0 beta
  • Changeset: patch on contract / worker / client (the 8.0 major is already carried by existing changesets)

Verification

pnpm install, pnpm lint, pnpm typecheck, pnpm test, pnpm knip, pnpm build and pnpm format all clean. Typedoc API docs regenerated (gitignored, so not in the diff).

🤖 Generated with Claude Code

unthrown 5.0.0 is out. The only API change since 5.0.0-beta.7 is that the
standalone `tag` export moved onto the pattern namespace as `P.tag(t)`, so
every call site, TSDoc example, README and doc page is updated and the peer
range is raised to `^5.0.0`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 29, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repo from unthrown@5.0.0-beta.7 to the stable unthrown@5.0.0, adjusting peer/dependency ranges accordingly and performing the mechanical API rename from tag(...) to P.tag(...) across source, tests, and documentation.

Changes:

  • Bump unthrown + @unthrown/vitest catalog entries to 5.0.0 and update the lockfile.
  • Update @temporal-contract/* package peer ranges to ^5.0.0.
  • Rename all tag(...) usage to P.tag(...) across runtime code, tests, READMEs, docs, and changeset guidance.

Reviewed changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
README.md Updates public README examples to use P.tag(...).
pnpm-workspace.yaml Bumps catalog versions for unthrown and @unthrown/vitest to 5.0.0.
pnpm-lock.yaml Lockfile refresh to resolve unthrown@5.0.0 and @unthrown/vitest@5.0.0.
packages/worker/src/workflow.ts Updates TSDoc examples from tag(...) to P.tag(...).
packages/worker/src/cancellation.ts Updates TSDoc example from tag(...) to P.tag(...).
packages/worker/src/activity.ts Removes tag import and switches matcher usage to P.tag(...).
packages/worker/src/activity-contract-errors.spec.ts Updates tests to use P.tag(...) and removes tag import.
packages/worker/README.md Updates package README examples to use P.tag(...) and adds P import.
packages/worker/package.json Updates unthrown peer range to ^5.0.0.
packages/contract/src/errors.ts Updates TSDoc reference to P.tag(...).
packages/contract/package.json Updates unthrown peer range to ^5.0.0.
packages/client/src/client.ts Updates TSDoc examples from tag(...) to P.tag(...).
packages/client/src/client.spec.ts Switches tests from tag(...) to P.tag(...) and updates imports.
packages/client/src/tests/client.spec.ts Switches integration tests from tag(...) to P.tag(...) and updates imports.
packages/client/package.json Updates unthrown peer range to ^5.0.0.
examples/order-processing-client/src/client.ts Updates example client code to use P.tag(...) and updates imports.
docs/tutorial/your-first-workflow.md Updates tutorial snippets to use P.tag(...) and import P.
docs/tutorial/adding-signals-and-queries.md Updates tutorial snippets to use P.tag(...) and import P.
docs/reference/errors.md Updates reference snippets to use P.tag(...).
docs/index.md Updates docs landing-page snippets to use P.tag(...) and import P.
docs/how-to/upgrade-to-v8.md Updates upgrade guide to unthrown@^5 and documents tagP.tag rename.
docs/how-to/troubleshoot.md Updates troubleshooting snippet to use P.tag(...).
docs/how-to/run-child-workflows.md Updates how-to snippets to use P.tag(...) and import P.
docs/how-to/model-domain-errors.md Updates how-to snippets to use P.tag(...) and import P.
docs/how-to/migrate-from-neverthrow.md Updates migration examples to use P.tag(...) and import P.
docs/how-to/intercept-client-calls.md Updates interceptor examples to use P.tag(...) and removes tag import.
docs/how-to/install.md Updates peer compatibility table to unthrown@^5.0.0.
docs/how-to/add-activity-middleware.md Updates middleware example to use P.tag(...) and removes tag import.
docs/explanation/the-result-model.md Updates explanation snippet to use P.tag(...) and import P.
.changeset/bump-unthrown-v5-stable.md Adds changeset documenting the bump and the tagP.tag migration.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file
Comments suppressed due to low confidence (1)

docs/reference/errors.md:61

  • This example uses P.tag(...) but doesn’t define or import P. Adding import { P } from "unthrown"; makes the snippet self-contained.
matcher.with(P.tag("@temporal-contract/ContractError"), (error) => {

Comment thread docs/reference/errors.md
Comment thread docs/how-to/troubleshoot.md
Comment thread packages/worker/src/cancellation.ts
Comment thread README.md
Review feedback: several snippets call P.tag(...) without establishing that
P is unthrown's pattern namespace.

Standalone and random-access contexts now import it explicitly — the eight
TSDoc @example blocks (each renders as an isolated card in the API docs), the
root README client example, and the troubleshoot.md entry readers reach by
symptom rather than by reading top to bottom.

The linear how-to guides already import P at their first use, so their later
blocks are left alone. reference/errors.md keeps its one-line shape fragments
free of imports — no snippet on that page has ever carried one — and states
P's origin in prose instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@btravers
btravers merged commit 647eaab into main Jul 29, 2026
11 checks passed
@btravers
btravers deleted the chore/bump-unthrown-v5 branch July 29, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants